import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/index'
import Qrcode from '@/components/qrcode'
import Success from '@/components/success'
import Error from '@/components/error'

Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'index',
            component: Index
        },
        {
            path: '/qrcode',
            name: 'qrcode',
            component: Qrcode
        },
        {
            path: '/success',
            name: 'success',
            component: Success
        },
        {
            path: '/error',
            name: 'error',
            component: Error
        },
    ]
})